The pain fighting was and will remain an anterior objective of medicine practice from the earliest times until today.
       At the beginning medicine appeared from practice reasons (sewn wounds) or within rituals (head trauma from the exorcize of evil spirits).        Afterwards it becomes a science, and med schools will appear. It was practiced war surgery and medicine based on natural remedies / quack medicine. All was done without any spiritual engagement so Homer considered the Greek doctors inferior than the Gets ones, which in treatment of sick people they took in consideration the patient's soul. (Iliada)

Aware of risks that the sick one was processed or the possible over fillings of doctors, Hippocrates with his great authority drew up an deontological code known as 'Hippocratic oath' who nowadays medical graduate students are saying at the beginning of practice.

I swear by Apollo the physician, by Aesculapius, Hygeia and Panacea and I take to witness all the Gods, to keep according to my ability and my judgment the following oath: To consider dear to me as my parents him who taught me the art, to live in common with him, and if necessary to share my goods with him, to look upon his children as my own brothers, to teach them this art if they so desire without fee or written promise to impart to my sons and the sons of the mater who taught me and the disciples who have enrolled themselves and have agreed to the rules of the profession but to these alone the precepts and the instructions. I will prescribe regimen for the good of my patients according to my ability and my judgment and never do harm to anyone. To please no one will I prescribe a deadly drug nor give advice, which may cause his death. Nor will I give a woman a pessary to procure abortion. But I will preserve the purity of my life and my art. I will not cut for stone, even for patients in whom the disease is manifest. I will leave this operation to be performed by practitioners (specialists in this art). In every house where I come I will enter only for the good of my patients keeping myself far from all international ill doing and seduction, and especially from the pleasures of love with woman or with men, be they free or slaves. All that may come to my knowledge in the exercise of my profession or outside of my profession or in daily commerce with men, which ought not to be spread abroad, I will keep secret and never reveal. If I keep this oath faithfully, may I enjoy my life and practice my art respected by all men and in all times but if I swerve from it or violate it may the reserve be my lot.

Rabeinu Mose Ben Mainmon's prayer - called Maimonide-      
                                                              
My dear Lord, before I begin my saintly work to heal those you created, I raise my eyes up to your heavenly throne, asking you for courage and strength to carry out my work honesty and not to be blindly by the money longing and by fame.
Help me to see in each ailing who comes to me for my advice, every human being, either rich or poor, friend or foe, good or bad, give me the power to see in the ailing and the power to see only the man.
And if I will meet doctors wiser than me, make me learn from them. And if bunglers will gibe me make me despite their attitude to believe in the love for my profession. Only the true guide my road because any mistake in my road can bring death and pain to your creature. O! Lord of pity, strengthen me, uphold me, and blast me with serenity and tranquility. Amen!